package cn.itcast.extends_;

/**
 * @title: Son
 * @Author Zhou
 * @Date: 2022/1/26 14:51
 * @Version 1.0
 */
public class Son extends Father {
    String name = "儿子";
    String hobby = "旅游";

    public Son() {
//        super(60);
        this("ss");
        System.out.println("Son类的构造器");
    }

    public Son(String name) {
        System.out.println("Son类的有参构造器,name=" + name);
    }
}
